<template lang="pug">
  div.child-4
    h1 组件 Child4
    div 插槽带有返回值的子组件
    ul
      li(v-for="item in items" v-bind:key="item.id")
        slot(v-bind:item="item")
</template>

<script type="text/ecmascript-6">
  export default {
    props: {
      items: {
        type: Array,
        default() {
          return []
        }
      }
    }
  }
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
</style>
